package com.pioneer.dao;

import java.util.List;
import com.pioneer.beans.Job;
import com.pioneer.beans.Supplier;
import com.pioneer.beans.Contractor;
import com.pioneer.beans.Item;
import com.pioneer.beans.JobItem;

/**
 * Title:        Pioneer Metals Application
 * Description:
 * Copyright:    Copyright (c) 2001
 * Company:      Pioneer Metals
 * @author Gary Chen
 * @version 1.0
 */

public interface JobDAO {

	public List getJobs()
	throws DataAccessException;

	public Job getJob(String quoteNum)
	throws DataAccessException;

	public void addJob(Job job)
	throws DataAccessException;

	public void updateJob(Job job)
	throws DataAccessException;

	public void deleteJob(String quoteNum)
	throws DataAccessException;
	
	public List getSuppliers()
	throws DataAccessException;
	
	public Supplier getSupplier(String supplierName)
	throws DataAccessException;
	
    public void addSupplier(Supplier supplier)
	throws DataAccessException;

	public void updateSupplier(Supplier supplier)
	throws DataAccessException;

    public void deleteSupplier(String supplierName)
	throws DataAccessException;
	
	public List getContractors()
	throws DataAccessException;
	
    public Contractor getContractor(String contractorName)
	throws DataAccessException;
	
    public void addContractor(Contractor contractor)
	throws DataAccessException;

	public void updateContractor(Contractor contractor)
	throws DataAccessException;

    public void deleteContractor(String contractorName)
	throws DataAccessException;
	
	public List getItems()
	throws DataAccessException;
	
    public Item getItem(String itemNum)
	throws DataAccessException;
	
    public void addItem(Item item)
	throws DataAccessException;

	public void updateItem(Item item)
	throws DataAccessException;

    public void deleteItem(String itemNum)
	throws DataAccessException;
	
	public List getJobItems(String quoteNum)
	throws DataAccessException;
	
    public void addJobItem(JobItem jobItem)
	throws DataAccessException;
	
	public void updateJobItem(JobItem jobItem)
	throws DataAccessException;
	
	public void deleteJobItem(String quoteNum, String itemNum)
	throws DataAccessException;
}